package cn.platform.mapper;

import cn.platform.entity.YourEntity;
import cn.platform.request.YourEntityRequest;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface YourEntityMapper {
    // 查询
    List<YourEntity> listYourEntity(YourEntityRequest req);

    // 新增
    void insertYourEntity(YourEntityRequest req);

    // 更新，用id找，其余参数为更新内容，null值不更新
    void updateYourEntity(YourEntityRequest req);

    // 删除，用id找
    void deleteYourEntity(YourEntityRequest req);
}
